.class Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;
.super Ljava/lang/Object;
.source "PortalAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/community/adapter/PortalAdapter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "UserBoxOnClickListener"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

.field userModel:Lcom/brixd/niceapp/model/UserModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/adapter/PortalAdapter;Lcom/brixd/niceapp/model/UserModel;)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/adapter/PortalAdapter;
    .param p2, "userModel"    # Lcom/brixd/niceapp/model/UserModel;

    .prologue
    .line 489
    iput-object p1, p0, Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;->this$0:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 490
    iput-object p2, p0, Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;->userModel:Lcom/brixd/niceapp/model/UserModel;

    .line 491
    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 495
    iget-object v2, p0, Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;->this$0:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    # getter for: Lcom/brixd/niceapp/community/adapter/PortalAdapter;->mActivity:Landroid/app/Activity;
    invoke-static {v2}, Lcom/brixd/niceapp/community/adapter/PortalAdapter;->access$000(Lcom/brixd/niceapp/community/adapter/PortalAdapter;)Landroid/app/Activity;

    move-result-object v2

    const-string v3, "portal_user_click"

    iget-object v4, p0, Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;->userModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/UserModel;->getNick()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v3, v4}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 497
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;->this$0:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    # getter for: Lcom/brixd/niceapp/community/adapter/PortalAdapter;->mActivity:Landroid/app/Activity;
    invoke-static {v2}, Lcom/brixd/niceapp/community/adapter/PortalAdapter;->access$000(Lcom/brixd/niceapp/community/adapter/PortalAdapter;)Landroid/app/Activity;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/userinfo/activity/UserInfoMainActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 498
    .local v1, "intent":Landroid/content/Intent;
    new-instance v0, Lcom/brixd/niceapp/model/CommonUserModel;

    iget-object v2, p0, Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;->userModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-direct {v0, v2}, Lcom/brixd/niceapp/model/CommonUserModel;-><init>(Lcom/brixd/niceapp/model/UserModel;)V

    .line 499
    .local v0, "commonUserModel":Lcom/brixd/niceapp/model/CommonUserModel;
    const-string v2, "UserModel"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 500
    iget-object v2, p0, Lcom/brixd/niceapp/community/adapter/PortalAdapter$UserBoxOnClickListener;->this$0:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    # getter for: Lcom/brixd/niceapp/community/adapter/PortalAdapter;->mActivity:Landroid/app/Activity;
    invoke-static {v2}, Lcom/brixd/niceapp/community/adapter/PortalAdapter;->access$000(Lcom/brixd/niceapp/community/adapter/PortalAdapter;)Landroid/app/Activity;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 501
    return-void
.end method
